package shixun.dao;

import org.apache.ibatis.annotations.Param;
import shixun.domain.Root;
import shixun.domain.User;

import java.util.List;

public interface UserDao {
    public User login(@Param("username")String username, @Param("password")String password);

    public void add(User user);

    public void update(@Param("username")String username,@Param("password")String password);


    public int findIdByUsername(@Param("username") String username);

    public User findUser(@Param("username")String username);

    public Root rootLogin(@Param("username") String username, @Param("password") String password);

    public List<User> findAllUsers();

    public void frozen(@Param("id")int id,@Param("N")String N);

    public void thaw(@Param("id")int id,@Param("Y")String Y);

    public void cancellation(@Param("id")int id);


}
